// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import './styles/common.scss'
import 'font-awesome/css/font-awesome.min.css'
import directives from "./directives";

import FormMaking from 'form-making'
import 'form-making/dist/FormMaking.css'
import formCreate, {maker} from "@form-create/element-ui"
import VJsoneditor from 'v-jsoneditor'
import table from "./views/generator/template/table"
import customButton from "./views/generator/template/customButton"
import echarts from 'echarts'
import chartComponent from "./views/generator/template/chartComponent";

Vue.prototype.$echarts = echarts
Vue.component('ddd-table', table)
Vue.component('ddd-button', customButton)
Vue.component('ddd-chart', chartComponent)
Vue.use(formCreate)

Vue.use(VJsoneditor)

Vue.use(FormMaking)
Vue.use(ElementUI)
Vue.use(directives)
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store: store,
  components: { App },
  template: '<App/>'
})
